package me.ezjs.framework.core.model;

/**
 * 查询运算的枚举类.
 * <p/>
 * LIKE("LK", " like "), LOWERLIKE("LL", " like "), EQUAL("EQ", " = "), NOTEQUAL("NE", " != "), ISNULL(
 * "ISN", " is null "), NOTNULL("NN", " is not null "), BETWEEN("BW", " between "), IN("IN", " in "),
 * NOTIN("NI", " not in "), LESS("L", " < "), LESSEQUAL("LE", " <= "), GREAT("G", " > "), GREATEQUAL(
 * "GE", " >= ")
 * <p/>
 * Created by zero-mac on 16/3/10.
 */
public enum Operate {

    LIKE("LK", " like "),//
    LOWERLIKE("LL", " like "),//
    EQUAL("EQ", " = "),//
    NOTEQUAL("NE", " != "),//
    ISNULL("ISN", " is null "),//
    NOTNULL("NN", " is not null "),//
    BETWEEN("BW", " between "),//
    IN("IN", " in "),//
    NOTIN("NI", " not in "),//
    LESS("L", " < "),//
    LESSEQUAL("LE", " <= "),//
    GREAT("G", " > "),//
    GREATEQUAL("GE", " >= "),//

    DESC("DESC", "  "),//
    ASC("ASC", "  "),//
    ;

    private final String simple;
    private final String sql;

    Operate(String simple, String sql) {
        this.simple = simple;
        this.sql = sql;
    }

    public String getSimple() {
        return simple;
    }

    public String getSql() {
        return sql;
    }

    public int getIndex() {
        return this.getIndex();
    }

    }
